package day240802.e1;

public class ThreadNewPath extends Thread {

    @Override
    public void run() {
        System.out.println("ThreadNewPath.run()");
    }

    @Override
    public void start() {
        run();
    }


    public static void main(String[] args) {
        ThreadNewPath t = new ThreadNewPath();
        t.start();

        new Thread(() -> {
            System.out.println("lambda");
        }).start();
    }
}

class MyRunnable implements Runnable {
    @Override
    public void run() {
        System.out.println("MyRunnable.run()");
    }
}